//
//  FitTabBarController.m
//  Four_Fit_New
//
//  Created by xalo on 16/7/14.
//  Copyright © 2016年 xmaz. All rights reserved.
//

#import "FitTabBarController.h"

#import "VideoViewController.h"
#import "CommunityViewController.h"
#import "FindViewController.h"
#import "UserViewController.h"

@interface FitTabBarController ()

@end

@implementation FitTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        FitNavigationViewController *videoNVC = [[FitNavigationViewController alloc] initWithRootViewController:[[VideoViewController alloc] initWithNibName:@"VideoViewController" bundle:[NSBundle mainBundle]]];
        videoNVC.tabBarItem.title = @"视频";
        
        FitNavigationViewController *communityNVC = [[FitNavigationViewController alloc] initWithRootViewController:[[CommunityViewController alloc] init]];
        communityNVC.tabBarItem.title = @"社区";
        
        FitNavigationViewController *FindNVC = [[FitNavigationViewController alloc] initWithRootViewController:[[FindViewController alloc] initWithNibName:@"FindViewController" bundle:[NSBundle mainBundle]]];
        FindNVC.tabBarItem.title = @"发现";
        
        FitNavigationViewController *UserNVC = [[FitNavigationViewController alloc] initWithRootViewController:[[UserViewController alloc] initWithNibName:@"UserViewController" bundle:[NSBundle mainBundle]]];
        UserNVC.tabBarItem.title = @"自己";
        
        self.viewControllers = @[videoNVC,communityNVC,FindNVC,UserNVC];
        
    }
    return self;
}

@end
